function Resolution = imaqhwinfo_GetResolution(vid)
%IMAQHWINFO_GETRESOLUTION Summary of this function goes here
%   Detailed explanation goes here

Resolution= zeros(2, 1);

roi= get(vid, 'ROIposition');

Resolution(1)= roi(3)- roi(1);
Resolution(2)= roi(4)- roi(1);

end

